import 'package:flutter/material.dart';
import 'package:lovify/widgets/aq_body.dart';

class AQScrollBody extends StatelessWidget {
  final List<Widget> children;
  final bool isLoading;

  const AQScrollBody({
    super.key,
    this.isLoading = false,
    required this.children,
  });

  @override
  Widget build(BuildContext context) {
    return AQBody(
      isLoading: isLoading,
      body: Center(
        child: SingleChildScrollView(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: children
          ),
        ),
      ),
    );
  }
}
